<div class="userAddresses index">
	<h2><?php echo __('User Addresses'); ?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id'); ?></th>
			<th><?php echo $this->Paginator->sort('users_id'); ?></th>
			<th><?php echo $this->Paginator->sort('sys_province_id'); ?></th>
			<th><?php echo $this->Paginator->sort('sys_city_id'); ?></th>
			<th><?php echo $this->Paginator->sort('sys_area_id'); ?></th>
			<th><?php echo $this->Paginator->sort('address'); ?></th>
			<th><?php echo $this->Paginator->sort('receiver'); ?></th>
			<th><?php echo $this->Paginator->sort('sex'); ?></th>
			<th><?php echo $this->Paginator->sort('cellphone'); ?></th>
			<th><?php echo $this->Paginator->sort('tel_inter'); ?></th>
			<th><?php echo $this->Paginator->sort('tel_city'); ?></th>
			<th><?php echo $this->Paginator->sort('tel_num'); ?></th>
			<th><?php echo $this->Paginator->sort('tel_redirect'); ?></th>
			<th><?php echo $this->Paginator->sort('email'); ?></th>
			<th><?php echo $this->Paginator->sort('is_default'); ?></th>
			<th><?php echo $this->Paginator->sort('created'); ?></th>
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($userAddresses as $userAddress): ?>
	<tr>
		<td><?php echo h($userAddress['UserAddress']['id']); ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($userAddress['Users']['name'], array('controller' => 'users', 'action' => 'view', $userAddress['Users']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($userAddress['SysProvince']['name'], array('controller' => 'sys_areas', 'action' => 'view', $userAddress['SysProvince']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($userAddress['SysCity']['name'], array('controller' => 'sys_areas', 'action' => 'view', $userAddress['SysCity']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($userAddress['SysArea']['name'], array('controller' => 'sys_areas', 'action' => 'view', $userAddress['SysArea']['id'])); ?>
		</td>
		<td><?php echo h($userAddress['UserAddress']['address']); ?>&nbsp;</td>
		<td><?php echo h($userAddress['UserAddress']['receiver']); ?>&nbsp;</td>
		<td><?php echo h($userAddress['UserAddress']['sex']); ?>&nbsp;</td>
		<td><?php echo h($userAddress['UserAddress']['cellphone']); ?>&nbsp;</td>
		<td><?php echo h($userAddress['UserAddress']['tel_inter']); ?>&nbsp;</td>
		<td><?php echo h($userAddress['UserAddress']['tel_city']); ?>&nbsp;</td>
		<td><?php echo h($userAddress['UserAddress']['tel_num']); ?>&nbsp;</td>
		<td><?php echo h($userAddress['UserAddress']['tel_redirect']); ?>&nbsp;</td>
		<td><?php echo h($userAddress['UserAddress']['email']); ?>&nbsp;</td>
		<td><?php echo h($userAddress['UserAddress']['is_default']); ?>&nbsp;</td>
		<td><?php echo h($userAddress['UserAddress']['created']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $userAddress['UserAddress']['id'])); ?>
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $userAddress['UserAddress']['id'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $userAddress['UserAddress']['id']), null, __('Are you sure you want to delete # %s?', $userAddress['UserAddress']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New User Address'), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Users'), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Sys Areas'), array('controller' => 'sys_areas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Sys Province'), array('controller' => 'sys_areas', 'action' => 'add')); ?> </li>
	</ul>
</div>
